package com.example.xpvideo.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 轮播图(Rolation)实体类
 *
 * @author 杨丽辉
 * @since 2021-08-09 18:17:27
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Rolation implements Serializable {
    private static final long serialVersionUID = -75910277468494695L;
        /**
    *主键
    * ${column.comment}
    * isnull 1
    */
        private Integer id;

    /**
    * 轮播图的图片路径
    * isnull 0
    */            private String rolationPic;
    /**
    * 轮播图的状态，0为不可用，1为可用,创建时不可用,2过期
    * isnull 0
    */            private Integer rolationType;
    /**
    * 轮播图的创建时间
    * isnull 0
    */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
            private LocalDateTime createtime;
    /**
    * 轮播图作用类型：
2作用于1级分类，
3作用于2级分类，
4作用于商品
5作用于3级分类，
1店铺
    * isnull 0
    */            private Integer effectType;
    /**
    * 一级分类id
    * isnull 0
    */            private Integer commodityTypeOneId;
    /**
    * 二级分类id
    * isnull 0
    */            private Integer commodityTypeTwoId;
    /**
    * 商品主类id
    * isnull 0
    */            private Integer commodityId;
        
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
        
    public String getRolationPic() {
        return rolationPic;
    }

    public void setRolationPic(String rolationPic) {
        this.rolationPic = rolationPic;
    }
        
    public Integer getRolationType() {
        return rolationType;
    }

    public void setRolationType(Integer rolationType) {
        this.rolationType = rolationType;
    }
        
    public LocalDateTime getCreatetime() {
        return createtime;
    }

    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }
        
    public Integer getEffectType() {
        return effectType;
    }

    public void setEffectType(Integer effectType) {
        this.effectType = effectType;
    }
        
    public Integer getCommodityTypeOneId() {
        return commodityTypeOneId;
    }

    public void setCommodityTypeOneId(Integer commodityTypeOneId) {
        this.commodityTypeOneId = commodityTypeOneId;
    }
        
    public Integer getCommodityTypeTwoId() {
        return commodityTypeTwoId;
    }

    public void setCommodityTypeTwoId(Integer commodityTypeTwoId) {
        this.commodityTypeTwoId = commodityTypeTwoId;
    }
        
    public Integer getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(Integer commodityId) {
        this.commodityId = commodityId;
    }

        @Override
    public String toString() {
        return "{" +
                    " \"id\":" + id +
                                  " ,\"rolationPic\":" + rolationPic +
                            " ,\"rolationType\":" + rolationType +
                            " ,\"createtime\":" + createtime +
                            " ,\"effectType\":" + effectType +
                            " ,\"commodityTypeOneId\":" + commodityTypeOneId +
                            " ,\"commodityTypeTwoId\":" + commodityTypeTwoId +
                            " ,\"commodityId\":" + commodityId +
                  '}';
    }


}
